package model.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "SALOON", schema = "HB")
@SequenceGenerator(name = "SEQ_GEN", sequenceName = "EMP_SEQ", initialValue = 1, allocationSize = 1)
public class Saloons extends abstractEntity{
	
	private int koltukSayisi;
	
	@Column(name="KOLTUK_ADET",nullable=false)
	public int getKoltukSayisi() {
		return koltukSayisi;
	}

	public void setKoltukSayisi(int koltukSayisi) {
		this.koltukSayisi = koltukSayisi;
	}

	@Override
	public String toString() {
		return "Saloons [koltukSayisi=" + koltukSayisi + "]";
	}
	
	
	
}
